package cn.gd.mapper.TravelApplicationsMapper;

import cn.gd.logging.RecordLog;
import cn.gd.pojo.Travelapplications;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TravelApplicationsMapper {
    // 查询所有出差申请
    @RecordLog(desc = "查询所有出差申请")
    List<Travelapplications> findAll();

    // 根据ID查询出差申请
    @RecordLog(desc = "根据ID查询出差申请")
    Travelapplications findById(Integer TravelID);

    // 插入出差申请
    @RecordLog(desc = "插入出差申请")
    int insert(Travelapplications travelApplications);

    // 更新出差申请
    @RecordLog(desc = "更新出差申请")
    int update(Travelapplications travelApplications);

    // 删除出差申请
    @RecordLog(desc = "删除出差申请")
    int deleteById(Integer TravelID);
}
